#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int c;
    cout<<"Vvedite chislo zadaniy: ";
    cin>>c;
    string s=" ";
    if (c/10!=1)
    {
    switch (c/10)
    {
    case 2:s=s+"Dvadcat ";
        break;
    case 3:s=s+"Tridcat ";
        break;
    case 4:s=s+"Sorok ";
        break;
    }
    switch (c-(c/10)*10)
    {
    case 1:s=s+"odno uchebnoe zadanie ";
        break;
    case 2:s=s+"dva uchebnix zadaniya ";
        break;
    case 3:s=s+"tri uchebnix zadaniya ";
        break;
    case 4:s=s+"chetiri uchebnix zadaniya ";
        break;
    case 5:s=s+"pat uchebnix zadaniy ";
        break;
    case 6:s=s+"shest uchebnix zadaniy ";
        break;
    case 7:s=s+"sem uchebnix zadaniy ";
        break;
    case 8:s=s+"vosem uchebnix zadaniy ";
        break;
    case 9:s=s+"devat uchebnix zadaniy ";
        break;
     case 0:s=s+"uchebnix zadaniy";
        break;
    }
    }
    else
        switch (c-(c/10)*10)
        {
        case 1:s=s+"Odinnadcat uchebnix zadaniy ";
            break;
        case 2:s=s+"Dvenadcat uchebnix zadaniy ";
            break;
        case 3:s=s+"Trinadcat uchebnix zadaniy ";
            break;
        case 4:s=s+"Chetirnadcat uchebnix zadaniy ";
            break;
        case 5:s=s+"Patnadcat uchebnix zadaniy ";
            break;
        case 6:s=s+"Shestnadcat uchebnix zadaniy ";
            break;
        case 7:s=s+"Semnadcat uchebnix zadaniy ";
            break;
        case 8:s=s+"Vosemnadcat uchebnix zadaniy ";
            break;
        case 9:s=s+"Devatnadcat uchebnix zadaniy ";
            break;
         case 0:s=s+"Desat uchebnix zadaniy";
            break;
        }

    cout<<s;
    return a.exec();
}
